<%	
    # Create the helper
  	flex_scaffold_helper = FlexScaffoldHelper.new("#{actions.first.camelcase}")

-%>package <%= class_name.downcase.gsub('::','.') %>.command
{

	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.collections.ArrayCollection;
	import mx.rpc.IResponder;
	import mx.rpc.events.FaultEvent;
	
	import org.genuflex.utils.GenuflexDataFunctions;
	import org.genuflex.control.GenuflexCairngormEvent;
	
	import <%= class_name.downcase.gsub('::','.') %>.business.<%= actions.first.camelcase %>Delegate;
	import <%= class_name.downcase.gsub('::','.') %>.model.<%= file_name.camelcase %>ModelLocator;

	public class <%= actions.first.camelcase %>FindByIdCommand extends <%= actions.first.camelcase %>BaseCommand
	{	
		public override function execute(event:CairngormEvent) : void
		{
	    	var delegate : <%= actions.first.camelcase %>Delegate = new <%= actions.first.camelcase %>Delegate( this );		 
		 	var genuflexEvent : GenuflexCairngormEvent = event as GenuflexCairngormEvent;
	    	additionalResultFunction = genuflexEvent.eventArguments["additionalResultFunction"] as Function;
	    	delegate.find<%= actions.first.camelcase %>ById(genuflexEvent.eventArguments['id'] as int);
		}		
	}
}